import { observable, action } from 'mobx';
import { ReqListStore } from './reqListStore';
import { WeaTools } from 'ecCom';
import { isArray } from 'lodash';

export class WFListMineStore extends ReqListStore{
     //关注点击按钮的位置
     @observable clickPotion={};
     @observable followTypeSelectShow = false;
     @observable FollowRequestid='';
    constructor(){
        super();
        this.appendBaseParams({
            viewScope: "mine",
            complete: 2,
            date2during: 0
        });
        const treeCache = WeaTools.ls.getJSONObj(`list${this.baseParams.viewScope}LeftTree`);
        this.leftTree = isArray(treeCache) ? treeCache : [];
        this.operBtnKey = 'batchAttention';
    }

    @action
    setClickPotion(params) {
        this.clickPotion = params;
    }
    
}